// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import MuseUI from 'muse-ui'
import Message from 'muse-ui-message';
import Toast from 'muse-ui-toast';
import VueResource from 'vue-resource'
import 'muse-ui/dist/muse-ui.css'
import myAxios from '@/ajax/myAxios.js'
import TopNav from '@/components/nav/topNav.vue'

//Muse UI组件
Vue.use(VueResource)
Vue.use(MuseUI);
Vue.use(Message);
Vue.use(Toast);
Vue.component('TopNav', TopNav)


//封装的axios
Vue.prototype.axios = myAxios;
//Vue.prototype.post = post;

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
